package org.lmj.dos.web.resultdo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

public class CartsVo {
    //GET /carts
    //1.购物车List列表

    //2.购物车添加商品
    //** POST /carts

    //3.更新购物车某个产品数量
    //** PUT /carts/{productId}
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
   public static class GetPostCarts{

       private List<CartItemVo> cartProductVoList;

       private boolean selectedAll;

       private double cartTotalPrice;

       private Integer cartTotalQuantity;

        private String imageHost;
   }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CartItemVo {
        private int id;
        private int userId;
        private int productId;
        private int quantity;
        private String productName;
        private String productSubtitle;
        private String productMainImage;
        private double productPrice;
        private int productStatus;
        private double productTotalPrice;
        private int productStock;
        private boolean productSelected;
    }

}
